package org.ww.seckill.to;

import lombok.Data;
import org.ww.seckill.vo.SkuInfoVo;

import java.math.BigDecimal;

/**
 * @program: gmall
 * @description:
 * @author: ww
 * @create: 2024-11-05 16:15
 **/
@Data
public class SeckillSkuRedisTo {
    /**
     * 活动id
     */
    private Long promotionId;
    /**
     * 活动场次id
     */
    private Long promotionSessionId;
    /**
     * 商品id
     */
    private Long skuId;
    /**
     * 秒杀价格
     */
    private BigDecimal seckillPrice;
    /**
     * 秒杀总量
     */
    private Integer seckillCount;
    /**
     * 每人限购数量
     */
    private Integer seckillLimit;
    /**
     * 排序
     */
    private Integer seckillSort;

    //sku的详细信息
    private SkuInfoVo skuInfoVo;

    //商品秒杀开始时间
    private Long startTime;
    //商品秒杀结束时间
    private Long endTime;

    private String randomCode;
}
